Skip to content

Custom Scalars input serialization in variables#253

Merged
leszekhanusz merged 4 commits intographql-python:masterfrom
leszekhanusz:feature_custom_types
Nov 19, 2021
Merged

Custom Scalars input serialization in variables#253
leszekhanusz merged 4 commits intographql-python:masterfrom
leszekhanusz:feature_custom_types

Conversation

@leszekhanusz
Copy link
Copy Markdown
Collaborator

New feature which implements Custom Scalars serialization in variable_values.

For this feature to work:

  • a schema is needed
  • the scalars implementation should be added as a GraphQLScalarType in the schema
  • the execute or subscribe methods (sync or async) should be called with serialize_variables=True

This function allows us to update a schema from a file or from introspection
with custom scalars implementations
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 13, 2021

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d5e3e6d) to head (1047885).
⚠️ Report is 207 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #253   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        19    +3     
  Lines         1335      1404   +69     
=========================================
+ Hits          1335      1404   +69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@leszekhanusz leszekhanusz requested a review from Cito November 13, 2021 13:11
@leszekhanusz leszekhanusz merged commit 37f1917 into graphql-python:master Nov 19, 2021
@leszekhanusz leszekhanusz deleted the feature_custom_types branch March 12, 2022 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: support for custom json serialization DSL - Datetime argument serialization failing

2 participants